package run.siyuan.jdk.新特性;

import cn.hutool.core.util.RandomUtil;
import cn.hutool.core.util.StrUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @className: RandomTest
 * @Description: TODO 用户信息随机
 * @author: siyuan
 * @date: 2022/6/1 5:12 PM
 */
public class RandomMemberUtil {

    private static final List<String> nameList = new ArrayList<>(500);

    private static final String[] fullNameArr =
            {
                    "143472", "4289ShopDD", "183218 ปิง 0926353162", "108471 จุรีรัตน์ 0879198525", "1000art", "963creation", "849459", "2PPShop", "5tma37878 Don", "123happy", "2POS", "0890179258", "426 รุ่งฤดี 159", "1989'",
                    "360🌍🌏", "7centuryNail", "0804593601", "24_Nuttawut", "7777", "0959571483", "8PIYAWONG", "18417", "294 artstudio", "8☎️tan", "8", "11498", "267 shop", "789ShoppingMall", "99shop", "117983",
                    "24579", "123 kung นะจ๊ะ", "923430164", "44771", "0955011880", "24.7STORE", "123", "20 กัลยาณี ภาคสังข์", "49Shops", "0987544496", "0909313629", "4289♻️Youpik♻️6395", "0869891693", "404 not found", "18up.Frame",
                    "448V3ณัฐกมล谭光华", "0655906245", "8179", "436241101มอส", "6U6IF6R"
            };

    private static final String[] avatarArr =
            {
                    "143472", "4289ShopDD", "183218 ปิง 0926353162", "108471 จุรีรัตน์ 0879198525", "1000art", "963creation", "849459", "2PPShop", "5tma37878 Don", "123happy", "2POS", "0890179258", "426 รุ่งฤดี 159", "1989'",
                    "360🌍🌏", "7centuryNail", "0804593601", "24_Nuttawut", "7777", "0959571483", "8PIYAWONG", "18417", "294 artstudio", "8☎️tan", "8", "11498", "267 shop", "789ShoppingMall", "99shop", "117983",
                    "24579", "123 kung นะจ๊ะ", "923430164", "44771", "0955011880", "24.7STORE", "123", "20 กัลยาณี ภาคสังข์", "49Shops", "0987544496", "0909313629", "4289♻️Youpik♻️6395", "0869891693", "404 not found", "18up.Frame",
                    "448V3ณัฐกมล谭光华", "0655906245", "8179", "436241101มอส", "6U6IF6R"
            };

    public static String getFullName(){
        int randomInt = RandomUtil.randomInt(fullNameArr.length);
        return fullNameArr[randomInt];
    }

    public static String getAvatar(){
        int randomInt = RandomUtil.randomInt(avatarArr.length);
        return fullNameArr[randomInt];
    }

    public static void main(String[] args) {
        for (int i = 0; i < fullNameArr.length; i++) {
            String fullName = getFullName();
            String newFullName = StrUtil.replace(fullName, 1, fullName.length() - 1, '*');
            System.out.println(newFullName);
        }
    }

}
